﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using AirLine.Entities;
using AirLine.DataAccess;
using AirLine.WebApp.Models;

namespace AirLine.WebApp.Controllers
{
    public class HomeController : Controller
    {
        #region Initialization

        private IRepository repository;

        public HomeController()
        {            
            repository = new Repository(new AirLineEntities());
        }

        public HomeController(IRepository repository)
        {
            this.repository = repository;
        }
        #endregion

        public ActionResult Index()
        {
            
            ViewBag.Message = "Modify this template to jump-start your ASP.NET MVC application.";
            return View();
        }

        public ActionResult About()
        {
            ViewBag.Message = "Your app description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Contact";
            return View();
        }
    }
}
